
                    <div id="inner-box">
                    	
                    	<div id="inner">
                        	<fieldset>
                        		<?php if(!empty($this->error)):?>
						        <div id="error"><?php echo $this->error?></div>
								<?php endif;?>
						                                        
						        <?php if(!empty($this->success)):?>
						        <div id="success"><?php echo $this->success?></div>
						        <?php endif;?>
                            	<legend>Danh sách tài khoản đăng ký Master Key</legend>
                                <ul class="button">
                                	<!-- <li><a id="them" class="viewbox" url="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'system', 'action' => 'addaccount'))?>" title="Thêm tài khoản mới"><img src="<?php echo TEMPLATES_URL?>/administrator/images/add-icon.png" alt="Thêm tài khoản mới" />Thêm</a></li> -->
                                    <li><a id="xoa" href="javascript:void(0);" title="Xóa bỏ tài khoản đã chọn"><img src="<?php echo TEMPLATES_URL?>/administrator/images/delete-icon.png" alt="Xóa bỏ" />Xóa dòng đã chọn</a></li>
                                    <li><a href="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'register'))?>" title="Tải lại"><img src="<?php echo TEMPLATES_URL?>/administrator/images/refresh-icon.png" alt="" />Tải lại</a></li>
                                </ul>
                                <div class="clear"></div>
                                <table id="thetable" page="register" controller="register" class="table" width="100%" border="0" cellpadding="0" cellspacing="0">
                                	<thead>
										<tr>
                                            <th width="3%" class="text-align"><input id="checkAll" type="checkbox" /></th>
                                            <th width="3%">#</th>
                                            <th width="15%">Họ tên</th>
                                            <th width="7%">Phone</th>
                                            <th width="20%">Email</th>
                                            <th width="15%">UserID</th>
                                            <th width="10%">Model</th>
                                            <th width="13">Thanh toán</th>
                                            <th width="8%">Ngày</th>
                                            <th width="5%">Cấp Key</th>
                                    	</tr>
                                      </thead>
                                      <tbody id="wrap_row_data">
                                      <?php $i =  0; foreach($this->listmasterkey as $row){ $i++;?>
                                      
                                        <tr id="table_row_<?php echo $row['id']?>" rel="<?php echo $row['id']?>">
                                            <td  width="3%" class="text-align"><input class="checkbox" type="checkbox" /></td>
                                            <td  width="3%" class="text-align stt" rel="<?php echo $i;?>"><?php echo $i;?></td>
                                            <td  width="15%"><?php echo $row['name']?></td>
                                            <td width="7%" ><?php echo $row['phone']?></td>
                                            <td width="20%" ><div class="sroll"><?php echo $row['email']?></div></td>
                                            <td width="15%" ><?php echo $row['userID']?></td>
                                            <td width="10%" ><?php echo $row['model']?></td>
                                            <td width="13%" ><?php echo $row['payment']?></td>
                                            <td width="8%" class="text-align"><?php echo $row['date']?></td>
                                            <td width="5%" class="text-align">
                                            	<ul class="optrow">
                                            		<!-- <li><a href="#" title="xóa dòng này"><img width="17px" alt="del" src="<?php echo TEMPLATES_URL.'/administrator/images/status_delete.png';?>"></a></li> -->
                                            		<li><a title="cấp Master Key" class="viewbox" url="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'register', 'action' => 'addmasterkey', 'id' => $row['id']))?>"><img width="17px" alt="ok" src="<?php echo TEMPLATES_URL.'/administrator/images/add-key-icon.png';?>"></a></li>
                                            	</ul>
                                            </td>
                                        </tr>
                                      <?php }?>
                                      
                                      </tbody>
                                </table>
                            </fieldset>
                        </div>
                        <div class="paging">
				    		<?php
				        		echo $this->paginationControl($this->listmasterkey, 'Sliding' , 'pagination/pagination.phtml'); 
				    		?>
						</div>
                    </div>
                    
                    